home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / g_man / cat3 / standard / viewport.z / viewport
Encoding:
Text File  |  1998-10-20  |  3.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. vvvviiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))                                                      vvvviiiieeeewwwwppppoooorrrrtttt((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      vvvviiiieeeewwwwppppoooorrrrtttt - allocates a rectangular area of the window for an image
  10.  
  11. CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      vvvvooooiiiidddd vvvviiiieeeewwwwppppoooorrrrtttt((((SSSSccccrrrreeeeeeeennnnccccoooooooorrrrdddd lllleeeefffftttt,,,, SSSSccccrrrreeeeeeeennnnccccoooooooorrrrdddd rrrriiiigggghhhhtttt,,,, SSSSccccrrrreeeeeeeennnnccccoooooooorrrrdddd bbbboooottttttttoooommmm,,,, SSSSccccrrrreeeeeeeennnnccccoooooooorrrrdddd ttttoooopppp))))
  13.  
  14. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  15.      _l_e_f_t     is the x coordinate of the viewport left side.
  16.  
  17.      _r_i_g_h_t    is the x coordinate of the viewport right side.
  18.  
  19.      _b_o_t_t_o_m   is the y coordinate of the viewport bottom.
  20.  
  21.      _t_o_p      is the y coordinate of the viewport top.
  22.  
  23. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.      vvvviiiieeeewwwwppppoooorrrrtttt specifies, in pixels, the area of the window that displays an
  25.      image.  The viewport locations are specified relative to the lower-left
  26.      corner of the window. Specifying the viewport is the first step in
  27.      mapping world coordinates to screen coordinates.  The portion of world
  28.      space that wwwwiiiinnnnddddoooowwww, oooorrrrtttthhhhoooo, or ppppeeeerrrrssssppppeeeeccccttttiiiivvvveeee describes is mapped into the
  29.      viewport.  _l_e_f_t, _r_i_g_h_t, _b_o_t_t_o_m, and _t_o_p coordinates define a rectangular
  30.      area on the screen.
  31.  
  32.      When the system is not in feedback mode the rectangular area is
  33.      restricted as follows.  The valid range for _l_e_f_t, and _r_i_g_h_t is
  34.      -ggggeeeettttggggddddeeeesssscccc((((GGGGDDDD____XXXXPPPPMMMMAAAAXXXX)))) to 2*ggggeeeettttggggddddeeeesssscccc((((GGGGDDDD____XXXXPPPPMMMMAAAAXXXX)))).  The valid range for _b_o_t_t_o_m,
  35.      and _t_o_p is -ggggeeeettttggggddddeeeesssscccc((((GGGGDDDD____YYYYPPPPMMMMAAAAXXXX)))) to 2*ggggeeeettttggggddddeeeesssscccc((((GGGGDDDD____YYYYPPPPMMMMAAAAXXXX)))).  The maximum
  36.      width and height is 2K.
  37.  
  38.      vvvviiiieeeewwwwppppoooorrrrtttt also loads the screenmask.
  39.  
  40. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  41.      scrmask, getviewport, popviewport, pushviewport
  42.  
  43. NNNNOOOOTTTTEEEE
  44.      On the Personal Iris, if _l_e_f_t is greater than _r_i_g_h_t or _b_o_t_t_o_m is greater
  45.      than _t_o_p, the screen displays a reflected image.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.